<template>
  <el-menu-item index="8">
    <p @click="handleVideo">视频监控</p>
  </el-menu-item>
  <monitor-popup :isToggle="isToggle"></monitor-popup>
</template>

<script setup>
import { ref } from 'vue'
import MonitorPopup from './MonitorPopup.vue'


const isToggle = ref(false)

// 点击显示摄像头
const handleVideo = () => {
  isToggle.value = !isToggle.value
}

</script>

<style scoped></style>
